<dt id="fanpages-label" class="fb_multi">
	<label id="select-fanpage" class="<?php echo ($this->element->isRequired()) ? 'required' : '' ?>">
		<?php echo $this->translate("FANPAGES"); ?> <span class="tooltip_label" title="<?php echo $this->translate("SELECT_FANPAGES"); ?>">[?]</span>
	</label>
</dt>
<dd id="fanpages-control" class="fanpages-control">
	<?php if(!count($this->element->getMultiOptions())): ?>
		<div id="load_my_fanpage" style="clear: both; margin-bottom: 5px;">
			<span class="btn_green">
				<a name="reload" id="reload" href="javascript:void(0);"><?php echo $this->translate('LOAD_MY_FANPAGES') ?></a>
			</span>
		</div>
	<?php endif; ?>	
	<?php foreach($this->element->getMultiOptions() as $key => $value): ?>			
		<label> 
			<input
				name="<?php echo $this->element->getName() ?>[]"
				value="<?php echo $key ?>"
				id="<?php echo $key ?>"
				type="checkbox"
				<?php if( $this->element->getAttrib('disable') ):?>
					<?php if( in_array($key,$this->element->getAttrib('disable')) ):?>
						disabled="disabled"
					<?php endif;?>
				<?php endif;?>
				<?php if( $this->element->getValue() ):?>
					<?php echo in_array($key,$this->element->getValue())?'checked="checked"':'' ?>
				<?php endif;?>
			/>				
			<?php echo trim($value); ?>
		</label>
	<?php endforeach; ?>
	<?php if($this->element->hasErrors()):?>
		<ul class="errors">
			<?php $messages = $this->element->getMessages();?>
			<?php foreach($messages as $msg):?>
			<li><?php echo current(explode(';', $msg))?></li>
			<?php endforeach;?>
		</ul>
	<?php endif;?>
</dd>